.class public Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
.super Ljava/lang/Object;
.source "MultiTouchListener.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;,
        Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;
    }
.end annotation


# static fields
.field private static final INVALID_POINTER_ID:I = -0x1


# instance fields
.field public isRotateEnabled:Z

.field public isScaleEnabled:Z

.field public isTranslateEnabled:Z

.field private mActivePointerId:I

.field private mOriginRotation:F

.field private mOriginScale:F

.field private mOriginTranslationX:F

.field private mOriginTranslationY:F

.field private mPrevX:F

.field private mPrevY:F

.field private mScaleGestureDetector:Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

.field private mTargetView:Landroid/view/View;

.field public maximumScale:F

.field public minimumScale:F


# direct methods
.method public constructor <init>()V
    .registers 4

    .prologue
    const/4 v0, 0x1

    .line 26
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    iput-boolean v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isRotateEnabled:Z

    .line 11
    iput-boolean v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isTranslateEnabled:Z

    .line 12
    iput-boolean v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isScaleEnabled:Z

    .line 13
    const/high16 v0, 0x3f000000

    iput v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->minimumScale:F

    .line 14
    const/high16 v0, 0x41200000

    iput v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->maximumScale:F

    .line 15
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    .line 27
    new-instance v0, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    new-instance v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;-><init>(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$1;)V

    invoke-direct {v0, v1}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;-><init>(Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector$OnScaleGestureListener;)V

    iput-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mScaleGestureDetector:Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    .line 28
    return-void
.end method

.method static synthetic access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    .prologue
    .line 7
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$202(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p1, "x1"    # F

    .prologue
    .line 7
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F

    return p1
.end method

.method static synthetic access$302(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p1, "x1"    # F

    .prologue
    .line 7
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F

    return p1
.end method

.method static synthetic access$402(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p1, "x1"    # F

    .prologue
    .line 7
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginRotation:F

    return p1
.end method

.method static synthetic access$502(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p1, "x1"    # F

    .prologue
    .line 7
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginScale:F

    return p1
.end method

.method static synthetic access$700(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V
    .registers 3
    .param p0, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p1, "x1"    # Landroid/view/View;
    .param p2, "x2"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;

    .prologue
    .line 7
    invoke-direct {p0, p1, p2}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->move(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V

    return-void
.end method

.method private adjustAngle(F)F
    .registers 4
    .param p1, "degrees"    # F

    .prologue
    const/high16 v1, 0x43b40000

    .line 43
    const/high16 v0, 0x43340000

    cmpl-float v0, p1, v0

    if-lez v0, :cond_a

    .line 44
    sub-float/2addr p1, v1

    .line 49
    :cond_9
    :goto_9
    return p1

    .line 45
    :cond_a
    const/high16 v0, -0x3ccc0000

    cmpg-float v0, p1, v0

    if-gez v0, :cond_9

    .line 46
    add-float/2addr p1, v1

    goto :goto_9
.end method

.method private adjustRotation(Landroid/view/View;F)V
    .registers 5
    .param p1, "view"    # Landroid/view/View;
    .param p2, "deltaAngle"    # F

    .prologue
    .line 95
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v1, :cond_15

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v1, p1, :cond_15

    .line 96
    iget v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginRotation:F

    add-float/2addr v1, p2

    invoke-direct {p0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustAngle(F)F

    move-result v0

    .line 97
    .local v0, "rotation":F
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setRotation(F)V

    .line 103
    :goto_14
    return-void

    .line 99
    .end local v0    # "rotation":F
    :cond_15
    invoke-virtual {p1}, Landroid/view/View;->getRotation()F

    move-result v1

    add-float/2addr v1, p2

    invoke-direct {p0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustAngle(F)F

    move-result v0

    .line 100
    .restart local v0    # "rotation":F
    invoke-virtual {p1, v0}, Landroid/view/View;->setRotation(F)V

    goto :goto_14
.end method

.method private adjustScale(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V
    .registers 6
    .param p1, "view"    # Landroid/view/View;
    .param p2, "info"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;

    .prologue
    .line 80
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v1, :cond_25

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v1, p1, :cond_25

    .line 81
    iget v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginScale:F

    iget v2, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaScale:F

    mul-float v0, v1, v2

    .line 82
    .local v0, "scale":F
    iget v1, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->minimumScale:F

    iget v2, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->maximumScale:F

    invoke-static {v2, v0}, Ljava/lang/Math;->min(FF)F

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F

    move-result v0

    .line 83
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setScaleX(F)V

    .line 84
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setScaleY(F)V

    .line 92
    :goto_24
    return-void

    .line 86
    .end local v0    # "scale":F
    :cond_25
    invoke-virtual {p1}, Landroid/view/View;->getScaleX()F

    move-result v1

    iget v2, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaScale:F

    mul-float v0, v1, v2

    .line 87
    .restart local v0    # "scale":F
    iget v1, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->minimumScale:F

    iget v2, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->maximumScale:F

    invoke-static {v2, v0}, Ljava/lang/Math;->min(FF)F

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F

    move-result v0

    .line 88
    invoke-virtual {p1, v0}, Landroid/view/View;->setScaleX(F)V

    .line 89
    invoke-virtual {p1, v0}, Landroid/view/View;->setScaleY(F)V

    goto :goto_24
.end method

.method private adjustTranslation(Landroid/view/View;FF)V
    .registers 8
    .param p1, "view"    # Landroid/view/View;
    .param p2, "deltaX"    # F
    .param p3, "deltaY"    # F

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 63
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v1, :cond_1b

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v1, p1, :cond_1b

    .line 66
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    iget v2, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F

    add-float/2addr v2, p2

    invoke-virtual {v1, v2}, Landroid/view/View;->setTranslationX(F)V

    .line 67
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    iget v2, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F

    add-float/2addr v2, p3

    invoke-virtual {v1, v2}, Landroid/view/View;->setTranslationY(F)V

    .line 76
    :goto_1a
    return-void

    .line 70
    :cond_1b
    const/4 v1, 0x2

    new-array v0, v1, [F

    aput p2, v0, v2

    aput p3, v0, v3

    .line 71
    .local v0, "deltaVector":[F
    invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/graphics/Matrix;->mapVectors([F)V

    .line 72
    invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F

    move-result v1

    aget v2, v0, v2

    add-float/2addr v1, v2

    invoke-virtual {p1, v1}, Landroid/view/View;->setTranslationX(F)V

    .line 73
    invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F

    move-result v1

    aget v2, v0, v3

    add-float/2addr v1, v2

    invoke-virtual {p1, v1}, Landroid/view/View;->setTranslationY(F)V

    goto :goto_1a
.end method

.method private computeRenderOffset(Landroid/view/View;FF)V
    .registers 15
    .param p1, "view"    # Landroid/view/View;
    .param p2, "pivotX"    # F
    .param p3, "pivotY"    # F

    .prologue
    const/high16 v10, 0x3f000000

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 107
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v6, :cond_87

    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v6, p1, :cond_87

    .line 108
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getWidth()I

    move-result v6

    int-to-float v6, v6

    mul-float v4, v6, v10

    .line 109
    .local v4, "targetPivotX":F
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getHeight()I

    move-result v6

    int-to-float v6, v6

    mul-float v5, v6, v10

    .line 110
    .local v5, "targetPivotY":F
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getPivotX()F

    move-result v6

    cmpl-float v6, v6, v4

    if-nez v6, :cond_34

    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getPivotY()F

    move-result v6

    cmpl-float v6, v6, v5

    if-nez v6, :cond_34

    .line 154
    .end local v4    # "targetPivotX":F
    .end local v5    # "targetPivotY":F
    :cond_33
    :goto_33
    return-void

    .line 114
    .restart local v4    # "targetPivotX":F
    .restart local v5    # "targetPivotY":F
    :cond_34
    new-array v3, v9, [F

    fill-array-data v3, :array_d4

    .line 115
    .local v3, "prevPoint":[F
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v6

    invoke-virtual {v6, v3}, Landroid/graphics/Matrix;->mapPoints([F)V

    .line 117
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6, v4}, Landroid/view/View;->setPivotX(F)V

    .line 118
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setPivotY(F)V

    .line 120
    new-array v0, v9, [F

    fill-array-data v0, :array_dc

    .line 121
    .local v0, "currPoint":[F
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v6

    invoke-virtual {v6, v0}, Landroid/graphics/Matrix;->mapPoints([F)V

    .line 123
    aget v6, v0, v7

    aget v7, v3, v7

    sub-float v1, v6, v7

    .line 124
    .local v1, "offsetX":F
    aget v6, v0, v8

    aget v7, v3, v8

    sub-float v2, v6, v7

    .line 126
    .local v2, "offsetY":F
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    iget v7, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F

    sub-float/2addr v7, v1

    invoke-virtual {v6, v7}, Landroid/view/View;->setTranslationX(F)V

    .line 127
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    iget v7, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F

    sub-float/2addr v7, v2

    invoke-virtual {v6, v7}, Landroid/view/View;->setTranslationY(F)V

    .line 129
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getTranslationX()F

    move-result v6

    iput v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F

    .line 130
    iget-object v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getTranslationY()F

    move-result v6

    iput v6, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F

    goto :goto_33

    .line 133
    .end local v0    # "currPoint":[F
    .end local v1    # "offsetX":F
    .end local v2    # "offsetY":F
    .end local v3    # "prevPoint":[F
    .end local v4    # "targetPivotX":F
    .end local v5    # "targetPivotY":F
    :cond_87
    invoke-virtual {p1}, Landroid/view/View;->getPivotX()F

    move-result v6

    cmpl-float v6, v6, p2

    if-nez v6, :cond_97

    invoke-virtual {p1}, Landroid/view/View;->getPivotY()F

    move-result v6

    cmpl-float v6, v6, p3

    if-eqz v6, :cond_33

    .line 137
    :cond_97
    new-array v3, v9, [F

    fill-array-data v3, :array_e4

    .line 138
    .restart local v3    # "prevPoint":[F
    invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v6

    invoke-virtual {v6, v3}, Landroid/graphics/Matrix;->mapPoints([F)V

    .line 140
    invoke-virtual {p1, p2}, Landroid/view/View;->setPivotX(F)V

    .line 141
    invoke-virtual {p1, p3}, Landroid/view/View;->setPivotY(F)V

    .line 143
    new-array v0, v9, [F

    fill-array-data v0, :array_ec

    .line 144
    .restart local v0    # "currPoint":[F
    invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v6

    invoke-virtual {v6, v0}, Landroid/graphics/Matrix;->mapPoints([F)V

    .line 146
    aget v6, v0, v7

    aget v7, v3, v7

    sub-float v1, v6, v7

    .line 147
    .restart local v1    # "offsetX":F
    aget v6, v0, v8

    aget v7, v3, v8

    sub-float v2, v6, v7

    .line 149
    .restart local v2    # "offsetY":F
    invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F

    move-result v6

    sub-float/2addr v6, v1

    invoke-virtual {p1, v6}, Landroid/view/View;->setTranslationX(F)V

    .line 150
    invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F

    move-result v6

    sub-float/2addr v6, v2

    invoke-virtual {p1, v6}, Landroid/view/View;->setTranslationY(F)V

    goto/16 :goto_33

    .line 114
    nop

    :array_d4
    .array-data 4
        0x0
        0x0
    .end array-data

    .line 120
    :array_dc
    .array-data 4
        0x0
        0x0
    .end array-data

    .line 137
    :array_e4
    .array-data 4
        0x0
        0x0
    .end array-data

    .line 143
    :array_ec
    .array-data 4
        0x0
        0x0
    .end array-data
.end method

.method private move(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V
    .registers 5
    .param p1, "view"    # Landroid/view/View;
    .param p2, "info"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;

    .prologue
    .line 53
    iget v0, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->pivotX:F

    iget v1, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->pivotY:F

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->computeRenderOffset(Landroid/view/View;FF)V

    .line 54
    iget v0, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaX:F

    iget v1, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaY:F

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustTranslation(Landroid/view/View;FF)V

    .line 56
    invoke-direct {p0, p1, p2}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustScale(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V

    .line 58
    iget v0, p2, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaAngle:F

    invoke-direct {p0, p1, v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustRotation(Landroid/view/View;F)V

    .line 59
    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 13
    .param p1, "view"    # Landroid/view/View;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v4, 0x0

    const/4 v7, 0x1

    const/4 v9, -0x1

    .line 158
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mScaleGestureDetector:Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    invoke-virtual {v8, p1, p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->onTouchEvent(Landroid/view/View;Landroid/view/MotionEvent;)Z

    .line 160
    iget-boolean v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isTranslateEnabled:Z

    if-nez v8, :cond_d

    .line 228
    :cond_c
    :goto_c
    return v7

    .line 164
    :cond_d
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 165
    .local v0, "action":I
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v8

    and-int/2addr v8, v0

    packed-switch v8, :pswitch_data_c0

    :pswitch_19
    goto :goto_c

    .line 167
    :pswitch_1a
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevX:F

    .line 168
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevY:F

    .line 170
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v8, :cond_4e

    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v8, p1, :cond_4e

    .line 171
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getTranslationX()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F

    .line 172
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getTranslationY()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F

    .line 173
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getRotation()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginRotation:F

    .line 174
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getScaleX()F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginScale:F

    .line 178
    :cond_4e
    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    goto :goto_c

    .line 184
    :pswitch_55
    iget v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    invoke-virtual {p2, v8}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v6

    .line 185
    .local v6, "pointerIndex":I
    if-eq v6, v9, :cond_c

    .line 186
    invoke-virtual {p2, v6}, Landroid/view/MotionEvent;->getX(I)F

    move-result v2

    .line 187
    .local v2, "currX":F
    invoke-virtual {p2, v6}, Landroid/view/MotionEvent;->getY(I)F

    move-result v3

    .line 191
    .local v3, "currY":F
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mScaleGestureDetector:Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    invoke-virtual {v8}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->isInProgress()Z

    move-result v8

    if-nez v8, :cond_c

    .line 192
    iget v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevX:F

    sub-float v8, v2, v8

    iget v9, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevY:F

    sub-float v9, v3, v9

    invoke-direct {p0, p1, v8, v9}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->adjustTranslation(Landroid/view/View;FF)V

    goto :goto_c

    .line 200
    .end local v2    # "currX":F
    .end local v3    # "currY":F
    .end local v6    # "pointerIndex":I
    :pswitch_79
    iput v9, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    goto :goto_c

    .line 204
    :pswitch_7c
    iput v9, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    goto :goto_c

    .line 209
    :pswitch_7f
    const v8, 0xff00

    and-int/2addr v8, v0

    shr-int/lit8 v6, v8, 0x8

    .line 210
    .restart local v6    # "pointerIndex":I
    invoke-virtual {p2, v6}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v5

    .line 211
    .local v5, "pointerId":I
    iget v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    if-ne v5, v8, :cond_a4

    .line 214
    if-nez v6, :cond_90

    move v4, v7

    .line 215
    .local v4, "newPointerIndex":I
    :cond_90
    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->getX(I)F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevX:F

    .line 216
    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->getY(I)F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevY:F

    .line 217
    invoke-virtual {p2, v4}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    goto/16 :goto_c

    .line 218
    .end local v4    # "newPointerIndex":I
    :cond_a4
    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eqz v8, :cond_c

    iget-object v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    if-eq v8, p1, :cond_c

    .line 219
    iget v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mActivePointerId:I

    invoke-virtual {p2, v8}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v1

    .line 220
    .local v1, "activePointerIndex":I
    invoke-virtual {p2, v1}, Landroid/view/MotionEvent;->getX(I)F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevX:F

    .line 221
    invoke-virtual {p2, v1}, Landroid/view/MotionEvent;->getY(I)F

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mPrevY:F

    goto/16 :goto_c

    .line 165
    :pswitch_data_c0
    .packed-switch 0x0
        :pswitch_1a
        :pswitch_7c
        :pswitch_55
        :pswitch_79
        :pswitch_19
        :pswitch_19
        :pswitch_7f
    .end packed-switch
.end method

.method public setMaxScale(F)V
    .registers 2
    .param p1, "maxScale"    # F

    .prologue
    .line 39
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->maximumScale:F

    .line 40
    return-void
.end method

.method public setMinScale(F)V
    .registers 2
    .param p1, "minScale"    # F

    .prologue
    .line 35
    iput p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->minimumScale:F

    .line 36
    return-void
.end method

.method public setTargetView(Landroid/view/View;)V
    .registers 2
    .param p1, "targetView"    # Landroid/view/View;

    .prologue
    .line 31
    iput-object p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;

    .line 32
    return-void
.end method
